package cz.jm.web.manhunter.client.services;

import com.google.gwt.user.client.rpc.AsyncCallback;

import cz.jm.web.manhunter.shared.User;

public interface UserDataServiceAsync {

	void authenticateUser(String userToken,  AsyncCallback<User> callback) throws IllegalArgumentException;
	
	void authenticateUser(String userName, String password,  AsyncCallback<User> callback) throws IllegalArgumentException;
	
	void registerUser(User user, String password, AsyncCallback<User> callback) throws IllegalArgumentException;
	
	void confirmUserRegistration(long userId, String registrationKey, AsyncCallback<Void> callback) throws IllegalArgumentException;
}
